package band.wukong.practice.urule.sample1;

import com.bstek.urule.model.library.action.annotation.ActionBean;
import com.bstek.urule.model.library.action.annotation.ActionMethod;
import com.bstek.urule.model.library.action.annotation.ActionMethodParameter;

/**
 * 内置动作库的用法
 *
 * @author wukong(wukonggg@139.com)
 */
@ActionBean(name = "buildinActionBeanTest")
public class BuildinActionsTest {

    @ActionMethod(name = "方法m1")
    @ActionMethodParameter(names = {"参数s1", "参数s2"})
    public void m1(String s1, String s2) {
        System.out.println("s1 = " + s1);
        System.out.println("s2 = " + s2);
    }

    @ActionMethod(name = "方法m2")
    @ActionMethodParameter(names = {"参数s1", "参数s2"})
    public String m2(String s1, String s2) {
        return s1 + "+" + s2;
    }
}
